const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      'api': {
        // target:'https://apis.tianapi.com',
        target: 'http://localhost:8086',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''  //将api地址换成空
        }
      }
    }
  },
  lintOnSave: false,
  // configureWebpack:{
  //   devtool:'source-map'
  // }
})
